<template>
  <div class="dis-ib wx_link">
    <a :href="obj.url" target="_blank">
      <div class="text-overflow title">{{ obj.title }}</div>
      <div class="des">{{ obj.description }}</div>
      <div class="img-box">
        <img class="img-cover" :src="obj.picUrl">
      </div>
    </a>
  </div>
</template>

<script>
export default {
  props:{
    isMe:{
      type:Boolean,
      default:function(){
        return false;
      }
    },//本组件中无用,与其他组件保持格式相同用
    obj:{
      title:String,//标题
      description:String,
      picUrl:String,
      url:String,
    }
  },
  data(){
    return {
      msgtype:'link',
    }
  },
  methods:{
  },
  mounted(){},
}
</script>

<style lang="less" scoped>
.wx_link{
  font-size:16px;
  width: 260px;
  padding:12px 40px 12px 16px;
  background-color:#fff;
  color:#333;
  .title{
    font-size:14px;
    line-height:1.5;
    color:#666;
  }
  .des{
    @fz:12px;
    @lh:1.5;
    @caleH:3;
    font-size:@fz;
    line-height:@lh;
    height:@fz * @lh * @caleH;
    display:-webkit-box;
    word-break:break-all;
    overflow:hidden;text-overflow: ellipsis;
    -webkit-line-clamp:@caleH;
    -webkit-box-orient: vertical;
    margin-right:60px;
    overflow: hidden;
    color:#999;
  }
  .img-box{
    position: absolute;
    bottom:10px;right:10px;
    width:48px;
    height:48px;
  }
}
</style>